package org.hydrakyoufeng.stuplatform.service;

import org.hydrakyoufeng.stuplatform.dto.ChapterDTO;
import org.hydrakyoufeng.stuplatform.dto.ChapterListDTO;
import org.hydrakyoufeng.stuplatform.dto.ChapterSortDTO;
import org.hydrakyoufeng.stuplatform.utils.ResultEntity;

public interface ChapterService {

    ResultEntity queryList(ChapterListDTO dto) throws Exception;

    ResultEntity updateSort(ChapterSortDTO dto) throws Exception;

    ResultEntity delete(Integer id);

    ResultEntity insert(ChapterDTO chapterDTO) throws Exception;

    ResultEntity update(ChapterDTO chapterDTO) throws Exception;

    /**
     * 前端用户查询课程中的章节列表
     * @param courseId
     * @return
     */
    ResultEntity queryUserList(Integer courseId);
}
